#include("../_inc/_layout.html")
#@layout("JbootFly首页", "jboot,jbootFly", "jbootFly社区","jie")
#define content()

#include("../_inc/_navigation.html",cid = '')

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md8">
      <div class="fly-panel" style="margin-bottom: 0;">
        
        <div class="fly-panel-title fly-filter">
          <a href="/" class="#(status==null && r==null ? 'layui-this' : '')">综合</a>
          <span class="fly-mid"></span>
          <a href="/post/all?status=0" class="#(status==0 ? 'layui-this' : '')">未结</a>
          <span class="fly-mid"></span>
          <a href="/post/all?status=9" class="#(status==9 ? 'layui-this' : '')" >已结</a>
          <span class="fly-mid"></span>
          <a href="/post/all?r=1" class="#(r==1 ? 'layui-this' : '')" >精华</a>
        </div>

        <ul class="fly-list">
          #for(post : pageData.list)
          <li>
            <a href="/user/#(post.user.id)" class="fly-avatar">
              <img src="#(post.user.avatar)"
                   alt="#(post.user.nickname)">
            </a>
            <h2>
              <a class="layui-badge">#(post.category.name)</a>
              <a href="/post/#(post.id)">#(post.title)</a>
            </h2>
            <div class="fly-list-info">
              <a href="/user/#(post.user.id)" link>
                <cite>#(post.user.nickname)</cite>
                <!--
                <i class="iconfont icon-renzheng" title="认证信息：XXX"></i>
                <i class="layui-badge fly-badge-vip">VIP3</i>
                -->
              </a>
              <span class="fly-list-kiss layui-hide-xs" title="悬赏元宝"><i class="layui-icon" style="color: #FF7200;font-size: 14px;">&#xe62b;</i> #(post.pay_point)</span>
              #if(post.isFinished())
              <span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>
              #end
              <span class="fly-list-nums">
                                <i class="iconfont icon-pinglun1" title="回答"></i> #(post.comment_count)
                            </span>
            </div>
            <div class="fly-list-badge">
              #if(post.isRecommend())
              <span class="layui-badge layui-bg-red">精帖</span>
              #end
            </div>
          </li>
          #end
        </ul>
        
        <!-- <div class="fly-none">没有相关数据</div> -->

        <div style="text-align: center">
          #indexPage(activeClass="laypage-curr")
          <div style="text-align: center">
            <div class="laypage-main">
              #for(page : pages)
              <a href="#(page.url)" class="#(page.style)">#(page.text)</a>
              #end
            </div>
          </div>
          #end
        </div>

      </div>
    </div>
    <div class="layui-col-md4">
      <dl class="fly-panel fly-list-one">
        <dt class="fly-panel-title">本周热议</dt>
        <dd>
          <a href="">基于 layui 的极简社区页面模版</a>
          <span><i class="iconfont icon-pinglun1"></i> 16</span>
        </dd>
        <dd>
          <a href="">基于 layui 的极简社区页面模版</a>
          <span><i class="iconfont icon-pinglun1"></i> 16</span>
        </dd>
        <dd>
          <a href="">基于 layui 的极简社区页面模版</a>
          <span><i class="iconfont icon-pinglun1"></i> 16</span>
        </dd>
        <dd>
          <a href="">基于 layui 的极简社区页面模版</a>
          <span><i class="iconfont icon-pinglun1"></i> 16</span>
        </dd>
        <dd>
          <a href="">基于 layui 的极简社区页面模版</a>
          <span><i class="iconfont icon-pinglun1"></i> 16</span>
        </dd>
        <dd>
          <a href="">基于 layui 的极简社区页面模版</a>
          <span><i class="iconfont icon-pinglun1"></i> 16</span>
        </dd>
        <dd>
          <a href="">基于 layui 的极简社区页面模版</a>
          <span><i class="iconfont icon-pinglun1"></i> 16</span>
        </dd>
        <dd>
          <a href="">基于 layui 的极简社区页面模版</a>
          <span><i class="iconfont icon-pinglun1"></i> 16</span>
        </dd>
        <dd>
          <a href="">基于 layui 的极简社区页面模版</a>
          <span><i class="iconfont icon-pinglun1"></i> 16</span>
        </dd>
        <dd>
          <a href="">基于 layui 的极简社区页面模版</a>
          <span><i class="iconfont icon-pinglun1"></i> 16</span>
        </dd>

        <!-- 无数据时 -->
        <!--
        <div class="fly-none">没有相关数据</div>
        -->
      </dl>

      <div class="fly-panel">
        <div class="fly-panel-title">
          这里可作为广告区域
        </div>
        <div class="fly-panel-main">
          <a href="" target="_blank" class="fly-zanzhu" style="background-color: #393D49;">虚席以待</a>
        </div>
      </div>
      
      <div class="fly-panel fly-link">
        <h3 class="fly-panel-title">友情链接</h3>
        <dl class="fly-panel-main">
          <dd><a href="http://www.layui.com/" target="_blank">layui</a><dd>
          <dd><a href="http://layim.layui.com/" target="_blank">WebIM</a><dd>
          <dd><a href="http://layer.layui.com/" target="_blank">layer</a><dd>
          <dd><a href="http://www.layui.com/laydate/" target="_blank">layDate</a><dd>
          <dd><a href="mailto:xianxin@layui-inc.com?subject=%E7%94%B3%E8%AF%B7Fly%E7%A4%BE%E5%8C%BA%E5%8F%8B%E9%93%BE" class="fly-link">申请友链</a><dd>
        </dl>
      </div>

    </div>
  </div>
</div>

#end